Verified Process-Context Switch for C-Programmed Kernels
نویسندگان
چکیده
A context switch — an act of saving and restoring the state of a CPU such that multiple processes can share a single CPU resource — is an essential feature of multitasking operating systems. Commonly computationally intensive and necessarily accessing hardware registers, context-switch procedures are implemented as inline assembly portions in C-programmed operating-system kernels. Feasible verification of operating systems is usually attempted in some kind of C semantics. However, seamless verification of kernels requires reasoning about context-switch routines in semantics of assembly language. At the end of the day, both semantics meet together in an overall correctness theorem of operating system. The task of formal integration of correctness results achieved on different semantical layers is challenging but inevitable for systems verification. The paper describes a formal approach to pervasive reasoning about interleaved computations of user processes and a C-programmed kernel. The interleaving is achieved by context-switch procedures implemented in inline assembly. We report on the correctness proof of the contextswitch procedures and elaborate on our experience in formal integration of this result into the correctness proof of CVM, a verified framework for microkernel programmers.
منابع مشابه
Roasting Process Optimization of Walnut Kernels for the Preparation of Walnut Cream Using Response Surface Methodology
Roasting has considerable effects on the quality of cream made of nuts. In this study, the roasting conditions of walnut kernels were optimized based on the stability parameters of the produced cream. Temperatures of 100-150°C for 10-30 minutes were used to roast walnut kernels. The amount of oil separation, peroxide, acidity and Thiobarbituric acid values of the cream, as well as color paramet...
متن کاملEffect of Infrared Roasting Process on the Microorganism Contaminations of Long and Round Iranian Pistachio Kernels
In this paper, the effect of infrared (IR) roasting conditions on Aflatoxins and total counts of two types of Iranian pistachio kernels, long and round, was studied. The optimized roasting conditions, 70 V for round pistachios and 90 V for long pistachios with 10 cm distance from IR source were used. Naturally Aflatoxin-contaminated kernels were supplied and roasted. Microbiological an...
متن کاملModular Verification of Concurrent Thread Management
Thread management is an essential functionality in OS kernels. However, verification of thread management remains a challenge, due to two conflicting requirements: on the one hand, a thread manager—operating below the thread abstraction layer–should hide its implementation details and be verified independently from the threads being managed; on the other hand, the thread management code in many...
متن کاملTruetime: Simulation of Control Loops under Shared Computer Resources
The paper presents TRUETIME, a MATLAB/Simulink-based simulator for real-time control systems. TRUETIME makes it possible to simulate the temporal behavior of multi-tasking real-time kernels containing controller tasks and to study the effects of CPU and network scheduling on control performance. The simulated real-time kernel is event-driven and can handle external interrupts as well as fine-gr...
متن کاملA Low-Cost CMOS Programmable Temperature Switch
A novel uncalibrated CMOS programmable temperature switch with high temperature accuracy is presented. Its threshold temperature Tth can be programmed by adjusting the ratios of width and length of the transistors. The operating principles of the temperature switch circuit is theoretically explained. A floating gate neural MOS circuit is designed to compensate automatically the threshold temper...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008